#include <cstdio>
#include <string>
#include <iostream>
using namespace std;

string ans[13];

void init()
{
    ans[0] = "-";
    for (int i=1; i<=12; ++i)
        ans[i] = ans[i-1] + ans[i-1] + ans[i-1];
}    

void cut(int num, int st, int end)
{
    if (st == end) return;
    int pos, len;
    len = (end - st + 1)/3;
    pos = st + len;
    for (int i=1; i<=len; ++i)
    {
        ans[num][pos] = ' ';
        pos ++;
    }    
    cut(num, st, st+len-1);
    cut(num, st+len+len, end);
}    

void deal()
{
    int i;
    for (i=0; i<=12; ++i)
        cut(i, 0, ans[i].size()-1);
}    

int main()
{
    init();            
    deal();
    int n;
    while (scanf("%d", &n)!=EOF)
    {
        cout << ans[n] << endl;
    }
        
    return 0;    
}    